package com.buba.system.service.impl;

import com.buba.system.dao.UserMapper;
import com.buba.system.pojo.SystemUsers;
import com.buba.system.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @Author: 游王子
 * @date: 2021/8/19 11:59
 */
@Service
@DubboService
public class UserServiceImpl implements UserService {
    private UserMapper userMapper;

    @Autowired
    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public SystemUsers login(SystemUsers systemUsers) {
        return userMapper.login(systemUsers);
    }

    @Override
    public Integer register(SystemUsers systemUsers) {

        return userMapper.register(systemUsers);
    }
}
